﻿<Window x:Class="Brjnk.GpxExplorer.UI.ImportExportWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ui="clr-namespace:Brjnk.GpxExplorer.UI"
        xmlns:loc="clr-namespace:Brjnk.GpxExplorer.Localization"
        FocusManager.FocusedElement="{Binding ElementName=okButton}"
        WindowStartupLocation="CenterOwner"
        Height="800" Width="500" MinWidth="300" MinHeight="400">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition Width="100"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition></RowDefinition>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0" Grid.RowSpan="2" Grid.Column="1">
            <Button IsDefault="True"  Click="Button_Click" Name="okButton" Content="{loc:Loc ok}" />
            <Button IsCancel="True"  Click="Button_Click_1" Content="{loc:Loc cancel}" />
        </StackPanel>

        <Grid Grid.Row="0" x:Name="exception" Visibility="Collapsed" Margin="0 0 0 20">
            <Grid.RowDefinitions>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
                <RowDefinition></RowDefinition>
            </Grid.RowDefinitions>
            <TextBlock Style="{StaticResource HeaderStyle}" Background="Pink">Při načítání souboru došlo k chybě</TextBlock>
            <TextBlock Grid.Row="1" Text="{Binding Message}" />
            <Button Grid.Row="2" Click="Button_Click_3">Zobrazit podrobnosti</Button>
        </Grid>

        <ui:GeoObjectsPicker Grid.Row="1" x:Name="picker" />
    </Grid>
</Window>